package com.sz.youban.dt.entity.pay;

public enum PayType 
{
	RECEIVED_TIME(100011,"实时代收"),
    PAYED_TIME(100014,"实时代付"),
    RECEIVED_BATCH(10001,"批量代收"),
    PAYED_BATCH(100002,"批量代付");
    
	/**
     * 代码
     */
    private int code;

    /**
     * 含义描述
     */
    private String desc;

    PayType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    
    public int getCode() {
		return code;
	}


	public void setCode(int code) {
		this.code = code;
	}



	public String getDesc() {
		return desc;
	}



	public void setDesc(String desc) {
		this.desc = desc;
	}

	 
    
    public static PayType getEnu(String name){
    	for(PayType enu :PayType.values()){
    		if(enu.name().equals(name)){
    			return enu;
    		}
    	}
    	return null;
    }
}
